Implement solution for issue 14

Fixes https://github.com/MindTouch/PullRequestService/issues/14

And took the chance to split the code into modules.

- Data
- Data access
- Web service

And consolidate and simply the logic.