Improve import item creation filtering
Improve import item creation filtering

- a lot of the existing logic could be optimised by changing the order of operations (ensure all filtering done before encoding, easier filters first)
- encoding being done twice before, now at an earlier stage to use later

WorldBrain/WebMemex,WorldBrain/WebMemex