Cleanup OnClientAuthorized
Add define for debug mode
Merge pull request #15 from Rainyan/rain-dev

Rain dev