Provide preprocessors function in API

This is continuation of another issue - link https://github.com/jfinkels/flask-restless/pull/82
It's not full completed, but i want to realize if you accept my pull requests in this implementation.
What do you think about this?