Prompt and store credentials

Stole lots of code from all over--mainly [hub](https://github.com/defunkt/hub)--to prompt for credentials, create an application, and persist the token in `~/.netrc`.

Playing with a bunch of other things. Good stuff, @pedro!