Model for unlocked achievements
test infrastructure: method for cheap db cleaning introduced

Clean up database before each test to make individual
tests really independent.
test infrastructure: create file upload directory for tests