Add library + tests

All is in the title. This PR will allow us to reuse the code in the widop/twitter-rest & widop/twitter-stream.