A contibution from my side

Several modifications which include:

1. better way to handle Scope enum (no more hard-coding in case statements)
2. organize and clean-up the code (remove the unnecessary parts + some formatting)
3. use the portable JSON.Net (instead of the old WP7 version)
4. add unit testing project (work is still in progress)