Remove $this->load->library('security');

Somehow I found an error (unable to load security class) when using codeigniter-restserver.
A quick googling take me to http://stackoverflow.com/questions/6268884/security-class-in-codeigniter and it just simply solve the problem.