Added mocking for test to isolate redis and db

@ptrelease @opyate Bit of re-jig for your perusal. Note I've commented out test_get_last_title. The reason is the method in server returns the first item from db table (i.e. not the last item in table). This is easy enough to fix by adding a created_ts timestamp to db entity and ordering by, but I'm too tired to do right not. However the unit test if uncommented will run against in memory db, albeit return data in wrong order. Doing this means you don't need memory store.

Also the test_add_title shows a way to mock both redis and db, if you prefer that approach.

Also clean up a few other relics along the way.