Refactoring and improved REST support;

core.controller implemented;
Added script addRoutes.sh;
Update Farm and services;