Refactor to a client-based API

- Add an osdb.Client type, rather than ugly globals.
- Separate different concerns in different files (rpc client, subtitles, ...).
- Update README.