Merge pull request #736 from stianst/master

KEYCLOAK-662 NPE when using direct grant API with email as username
KEYCLOAK-722 Refreshing token throws RuntimeException if realm keys have changed