UIButton and UISwitch subclass that uses blocks for actions.