services.js: added new function for assuring the connection to the backend
services.js: added new function for assuring the connection to the backend

clemens-huebner/amos-ss16-proj8,clemens-huebner/amos-ss16-proj8,clemens-huebner/amos-ss16-proj8