Refactored database and MHAPI.
Until not implemented fully do not sync collections with server.
Updated unit tests.
Fixed login/register navigation.