use martini binding and error handler middleware