adding jshinting and making sure callback gets run on error
refactoring for prettification and using winston for logging
refactored into promises and removed detailed clientinfo calls