controller to edit; fetching of the contact data

introduced new API to retrieve contact data, given id. detail.html view is used both to create and edit contacts; small changes are done dynamically.