Add protection against malicious data in sandbox filters

- general clean up
- improved error messages
Merge pull request #969 from mozilla-services/malicious_data

Add protection against malicious data in sandbox filters