add api-mode
use reply().location() method for redirection header
Merge pull request #70 from chmanie/master

This is great @jmonster and @chmanie. Sorry for slacking on this everyone. I'll get this one published tonight and look at the other PRs.

+1 on letting the 99.19% code coverage pass for now. Should try to get it back up to 100% at some point (for consistency if nothing else) but as @nlf mentioned this was a preexisting condition.