Added REST server and calls to trigger photo capture