Added PUT and POST to cross origin resource sharing support.