Bugfix : error when you access /authenticate url without a project identifier
Add unit-test for bug #105.
Small code refactoring for better readability
Merge pull request #106 from aavenel/bugfix105

Bugfix #105 : TypeError: object of type 'NoneType' has no len()