[FEATURE] Export deposit middleware function.
[CHORE] Handle json parse errors.
Merge pull request #1 from ripple/middleware

Middleware