Added support for HTML and XML output. Can now set the HTTP response status. Made public interface naming a bit more consistent.