Uses system gateway mock in dev mode (=app_is_production flag to false)
Refactored services to separate controller and services logic