Merge pull request #39 from treshugart/master

This was tested and working under firefox and chrome
Fix reference to undefined constructor.
Merge pull request #40 from treshugart/master

Ensure a view can be rendered without a bound model.
added auth header functionality
dropped auth header in favour of more general headers array
modified response parsing to utilise new headers array
Refine HTTP modifications from JoshBones.
Merge pull request #44 from treshugart/GH-42

Implement #42.