Misc. framework changes

handles post data correctly, basic auth