Initial modification to to make the application ReSTful.