added port and debug command-line options. Also modified how logging is
handled.
Rearrange JS a bit and fix resizing bug

JS code for the waterfall was unnecessarily split between two locations,
so I moved the code for creating the canvas element into waterfall.js. I
also removed the hard-coding of the waterfall canvas element id in
waterfall.js. Finally, I added code to make sure that the waterfall is
resized when the window changes size.
Merge pull request #24 from armanhb/js_fix

Rearrange JS a bit and fix resizing bug
Merge pull request #23 from armanhb/cmd_options

added port and debug command-line options.