REDCORE-206 webservices layer with authentication

we will need to make the code sniffer to avoid checking all this functions because they don't have docblocks and the inspector will complain.