refactor

Move URL building into functions
Twiddling with functions
move db init to before suite

Also, install lein-datomic plugin. Not tested yet.