Transformed GetPermission to async. Changed the UI a bit.
Changed token creation and handling.