factorize checkValidEntity
better handle errors
use a database instead of files for registrations
Fixes #10: redirects to the targeted page after succesful login
Fixes #12: Global feed
cleanups and small bugfixes
add a subscription button when reading somebody else's essay
bugfix: delete essays from global post if the owner deletes it or mark it as not public
Fixes #13: entity page