Basic movement of generate code into module plus basic html module.

R=dsinclair@chromium.org, dsinclair

Review URL: https://codereview.appspot.com/111220043

git-svn-id: http://trace-viewer.googlecode.com/svn/trunk@1340 0e6d7f2b-9903-5b78-7403-59d27f066143
find control shows up
Fix element name in track view
Generalize template location and use in chart_base
Fixup event handlers
Update build files
Load imports by require instead of requireTemplate