Implement ButtonsViewController sample.

This PR implements the ButtonsViewController sample with some nice ruby-esque coding improvements.