Fixed: tests couldn't be run individually because of a missing token
Refactored: proper error handling
Refactored: feed should be a library
Removed: unused library
Fixed: DS was emitting event if there was no related doctype
Refactored: syntax for encrypt/decrypt to match their synchrone nature
Fixed: app name was 'true' in dev mode
Refactored: using middlewares for permissions and getdoc in indexer controller