fixed typo, check scope type before bearer.get(), store scopes alphabetically sorted in databse
@nilclass's changes on unht-beta
Merge branch 'master' of https://github.com/michielbdejong/customer