Adapt architecture to support multi paper format

With this new architecture it is easier to support a new paper format.
Improve UI

Small UI changes
Add JSON MobWrite format support

Add the support of the JSON MobWrite format described in \BlueLaTeX project.
Use server configuration.

Use the configuration file generated by the server instead of hard coded value.
Rename rootApiUrl to api_prefix
Improve error page 404

Add text to explain the error
Move external library to lib folder
Remove latex folder

Move content of latex folder to paper folder
Create LatexService to parse latex content

Parse table of contents of a latex file
Extract latex commands declared in latex file
Fix keep session alive
Rename autofocus directive
Add utility functions

create radom color and get keys of an object
Remove unused ace settings
Improve index.html

Redirect the user if he is not in the good directory
Remove import of removed file
Improve loading desgin
Reflactor the code and fix minor bugs
Comments the code
Improve application localization

Add new translation and and french support
Improve event handler

Launch event on rootScope instead of scope
[fix] Fix resize preview
Fix page navigation

The page navigation works again.

Now the page doesn't change automatically if the page related to the current line is different of the current watched page.
Fix table of contents display