CLOSED - issue PC-31: Decouple Http handlers with business logics 
https://anyflow.atlassian.net/browse/PC-31