added base controller and model
fixed a few bugs, added methodfor getting data as array to Model_RESTful_API_ORM