add get middleware client
add post, patch, delete middlewares
remove post, patch, delete from client and middlewares
refactor(config): change host into hostname in config
fix after code review
Merge pull request #5 from lemonde/add-middlewares

Add get middleware
validate the config object
add config dir + error lib