Add action listeners and parsing to button handling code.

CoAuthors: rbkillea, lhnguyenduc
Merge pull request #123 from cgwalker/sbl-dev

Add action listeners and parsing to button handling code.