Add main
Merge pull request #6 from OliverJAsh/oja-patch-5

Add main
Update npm module main file to match that of Bower component
Add main file

This is necessary because when the RequireJS optimizer runs, the file name is used as the AMD module ID.
Return object
Move main file to src dir
Merge pull request #8 from OliverJAsh/oja-patch-7

Add main file to improve usage with RequireJS optimizer
Transparently follow redirects (just on POST with 303s for now)
Also redirect if status is 301/302/303/201 and has location header
Redirect if status is 301/302/303 or status is 201 and has location header
Add tests