add default value for the 'spore.headers' environment key
refactoring auth base middleware
fix json formatter middleware and support for the requests API
support for middleware and payload improved
base function to create spore clients easily