Implement mime filter mode

This change is needed by the change in sugar https://github.com/sugarlabs/sugar/pull/22