Added $where conditions to model_get and in RestModel::get + updated RestModel::to_array to detect and return empty results for get_all() queries.