Added set_resource methods.
Added support for basic filtering (mongo query syntax)