Various improvements

- Use 2-legged oauth
- Tidied up serialization
- Added an example