Added common router creation; added test JsonRest