logger and jslint

I would like to create some web ui for upnpserver. So I created exports for using it as lib. Also I add logger for external using, and some jslint warning fix.