Forms implementation for %HTML.Trusted. Some backend changes: