Use `v3` media type by default, fixes #21
Simple refactor

Split custom api methods into own files. Everything else is pretty much
the same.
Compile to JS before publishing

Hooray, I'm finally not an abomination in the eyes of @isaacs!