Make it work!

Fixed tons of bugs front and back end.
Permissions

Create permisions policy which handles resources accesses.
Create notYetImplemented policy which is used to prevent acces to unfinished features.
Create forbidden policy which deny every access.
Create the Bouncer helper which matches routes and permissions rules.
Add some errors messages in the language file.
Refactoring

Refactor permissions policy to be more modular.
Merge pull request #1 from throskam/policies

Policies
Fix in app.js

Reset the errors whenever the request has succeed
Destroy

The function publishDestroy receive now the complete object and not just its id.
Destroying a topic now remove topics from the chat and associated subject from the messages.
API errors

Adapt error message in accordance with the language file.
Remove the crash redirect when the app page has some 403 errors.
Permissions

chat/participants is allowed for meta members as well as members.
Fix app.js bugs

Ignore errors during the chat subcontent (participants, topics and messages) loading.
This is important since meta member can't load properly topics and messages but should be able to see the chat anyway.
Fix bugs

- Permissions policiy bug where the callback was missing.
- Consider error while sending message as critical
Merge pull request #2 from throskam/development

Beta