Add route tests

Covering old code.
Added an abstraction to the storage (in-memory representation yet).
Added lodash.