Implementation of skip and limit of filter

Used in, for example, pagination. Much better solution than trying to use the context object which should be used as a context object and nothing else (can thus potentially remove the clone of the context object - but I left it there because I think it's still quite nice functionality, and it shouldn't have any noteworthy affects on the performance).