https://github.com/philsturgeon/codeigniter-restserver