Add filter commands

This is probably the most complex patchset by now

@theneikos please review