Added rest interface, and converted homecontroller into the contact controller