fixed a few bugs, added methodfor getting data as array to Model_RESTful_API_ORM