Normalize line endings.
UI: Fix obvious typos and jshint issues.
UI: Fix some inconsistencies.
Build, UI: Add API reference.