Moved queryfilter into ext module
Added codec for query filters
Added range filter. TODO: rename it