More elegant solution to params.url and model.url() issue

This solution also fixes my issue mentioned in the previous pull request.
https://github.com/viezel/napp.alloy.adapter.restapi/pull/36