fix #1713
Merge pull request #1019 from jygaulier/3.8-fix1713

fix #1713
Merge branch '3.8'

Conflicts:
	lib/classes/task/period/archive.php
Fix status calculation form xml card index
Merge pull request #1029 from nlegoff/fix1713

[3.8] Fix status calculation form xml card index for stories as well
Merge branch '3.8'

Conflicts:
	lib/classes/task/period/archive.php
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