Added cross origin filter (to test) and added a shutdown endpoint