Added RESTful /api/contacts endpoint to allow for JavaScript-based interaction with the contacts.