Since I'm breaking compatibility stuff, might as well fix app data directory structure.
Better namings for DB and R.
Remove profile records if profiles are empty in script.
Haddock fixes.
Fix specs.