support response_type and scope parameters
code improvements
0.2.2