Make it possible to specify service directory

This also adds some tests and exposes the timestamp of the current state
Merge pull request #1 from soundcloud/add-tests

Make it possible to specify service directory