Removed middleware and replaced it with a better security-policy implementation. This one injects logic or falls back on Tastypie default behaviour. Also improved docs a bit.