refactored format into async func
resource url should not add trailing slash
cleaned url utils tests description
added formatter middleware
added test deps
added doc
additional middleware tests
added content-type to middleware
added test for content type
update for async formatter
use safer method to set content-type