Fix support for backend server

Added some fixes for backend server + configuration of the api end point from the constants file.