JUnit tests

Tests for everything. Work in progress.
Merge remote-tracking branch 'origin/master' into server
JUnit tests

Remember that changes to the import.sql will break these tests. 

Close #94. Close #95