added menuCommand function to elegantchaos library
Experimenting with performing menu actions.
log window experiments
Defined library using a funkier module pattern (http://www.adequatelygood.com/JavaScript-Module-Pattern-In-Depth.html).
Changed menuCommand to sendAction.
Experimenting with making a log window at runtime.