Add REST boilerplate for codeigniter

Fixes #9.