This adds a bit more parsing logic in preparation for html modules

R=dsinclair@chromium.org

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

git-svn-id: http://trace-viewer.googlecode.com/svn/trunk@1339 0e6d7f2b-9903-5b78-7403-59d27f066143