refacture in Api model methods: added generic CRUD methods that take model_name as first parameter. calling these in the magic methods
bugfixes for loading and saving relations and fixes to models isPropertyModified() related code