Add: grantType to server based on indentifier

If $key is not provided Server::addGrantType is called, add the grant type base on qyery string identifier for better consistency
Add: test to addGrantType method

Test if the key to get the grant type from the server is the query string identifier
Merge pull request #374 from luxifer/grant-type-key

Add: grantType to server based on indentifier