Merge pull request #233 from patriot1burke/master

refactor token creation
Fix testsuite with Mongo
Added new unit tests. Change get***ById() to find just entities from this realm/application
refresh tokens server side
Merge remote-tracking branch 'upstream/master'
Merge pull request #234 from mposolda/master

Fix testsuite with mongo. Fix RealmModel.get**ById(). Added new unit tests
Merge remote-tracking branch 'upstream/master'
undertow refresh token support