texttochange/vusion-frontend — pull request #194 by overnin (2014-11-24 10:16:08+00:00)
Title: refactoring due to cakephp upgrade as side effect the ajax workflow fail...

...ed, commit still contain commented code to ease review

The AJAX authentication (basic authentication) is not done in the beforeFilter of the component. Therefor we had to move the instanciation of the ProgramSpecificMongoModel in the ProgramAuthComponent->startup() as at this point, the user is authenticate.

It lead to a major refactoring, in order to unify the way ProgramSpecificMongoModel are instantiate.

Note that in BasicAuth mode, no session is initialised. Therefore one shouldn't store there the program databaseName, but rather a controller property.