Make API work with applicationKey and domain instead of accountSystemName
forgot some changes
Completely replace accountSystemName by Domain so the correct account is always available in the API
getAccount() returns current account by default
Conflicting domain parameter
Added metadata field to inviteUser
Don't return raw API response
Don't return raw API response
Merge branch '1.5' of https://github.com/eResults/unity-php-api into 1.5
Added metadata to grantRights
Return message
Encode parameters
Lower priority for some exception to make reporting critical exceptions easier
When FORCE_SSL is defined use https. It's a fall back for Heroku apps because HTTPS isn't defined
Merge remote-tracking branch 'origin/master' into 1.5

Conflicts:
	API.php
Merge pull request #2 from eResults/1.5

Make API work with applicationKey and domain instead of accountSystemName
Merge remote-tracking branch 'origin/master' into feature/api-2

Conflicts:
	API.php
	Exceptions/AccountNotFound.php
	Exceptions/BadRequest.php
	Exceptions/Forbidden.php
	Exceptions/SessionExpired.php
	Exceptions/Unauthorized.php
	Exceptions/UnityException.php