Factorize unittest code

Add DatabaseTest and ReadOnlyDatabaseTest abstract classes
Merge branch 'master' into unittests-user
Add unittests for User and Blocked

Add some interfaces to construct test cases (DatabaseTest and
ReadOnlyDatabaseTest).
Update travis.yml
Merge pull request #127 from trecouvr/unittests-user

Add some unittests for User and Blocked