Merge pull request #49 from dragonfi/user-id-and-other-fixes

User id and other fixes
Use scope_ids.user_id instead of runtime.user_id