added client middleware

- added a client middleware so that each route receives an instance of
the syscoin client irrespective of where the route is defined