Refactor server

Refactoring of webhooks and pullreq, url services