Body parsing refactoring. Allow custom parsers.