fix crash when a file doesn't exit in static folder.

my bad, previous patch was buggy
made ip address to bind to configurable
Change error logging to use lager
Merge
Merge pull request #392 from zkessin/master

Merging some contributer pull requests