Major restructuring.

Basic happy-path tests are passing.
Added `getJson` method.

Sets the content-type and parses the result to a Dynamic.
Got it working!

Had to modify the express middleware a bit to make it work, and add a
special content-negotiation workaround when using flash, but it works.
Allow the Accept header values to go on the query string
Update haxelib registration info.