Added urlencoded values test. Version bump
Handle token errors on OAuth2
Packaging updates
Added proper redirect support
Check for state and code to not be `None`