Switching POST to 201 and use a Location header. Fixing absolute urls in IndexController.