Revert changes in tests
Merge branch '3.8'

Conflicts:
	tests/classes/PhraseanetPHPUnitAbstract.php
Merge branch 'master' of github.com:alchemy-fr/Phraseanet
Fix unit tests
Add oauth entities
Add oauth repositories
Fix bad index
Set revoked to false by default
Add web, desktop & URN constant for API application
Set default value for grantedPassword & activated properties
Add Bi-Directional relationship between ApiApplication & ApiAccount
Add cascade remove for accounts relationship, when deleting an application related accounts will be deleted as well
Add accounts property getter
Sets clientId & clientSecret field length to 32
Add Account Manipulator
Add Application Manipulator
Add some application repository function
Fix use statement
Add OauthToken manipulator
Set code length to 16