Due to intensive development, service.js grew complex and convoluted. With lessons learned we shall prepare a cleaner and leaner version of the code.