Provide preprocessors function in API

See https://github.com/jfinkels/flask-restless/pull/82
It's not full completed, but i want to see whether you will accept my pull requests in this implementation.
What do you think about this?