Cleaner exception handling
First version of OAuth level 3 authroization