init properly config file

with devces array set in the config file
[enh] Re-ordened files
[ref] Nodeify callbacks
Merge branch 'master' of github.com:Kloadut/cozy-data-proxy
improve code styling
remove wrong callback call in create desing function
add comments to config module
improve code style for replication module
up pouchdb version
extract and name callbacks in db module
refactor

* name and extract all sub functions
* put two lines before each functions