Rails RESTful API server for photo upload.