Start converting BB assembler to use templatized base classes.

BUG=
R=chrisha@chromium.org

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