Move body of /post_receive handler into a service
What does this MR do?
This commit just moves the body of API endpoint handler into a service. Breaking down the service into methods and refactoring is going to be performed in other commits.
Tests aren't touched in order to prove that it works as before.
Edited by Igor Drozdov