Update to support v3 API. Add Phrase endpoints.

Move database to parameters. Refactor requests. Add Phrase endpoints.
Fully linted but untested.