Add template for setup/cleardatabase
Return 404 if exception happens on serialization
Add text/n3 to accepted types
Fix getActivityFeed
Add debug output for addfriend method