Add some helpers to base

git-svn-id: https://trace-viewer.googlecode.com/svn/trunk@207 0e6d7f2b-9903-5b78-7403-59d27f066143
Merge branch 'master' into move_importers