Codeigniter Rest Service Framework