Implement path configuration

Allow to specify where the middleware should be listening
Return 'application/json' content-type with the response headers

fixes #1