Adding support for the 'before' query param

Closes #11