Allow button type to changed based on button name.

This allows us to ahve a button for submitting and reseting forms as well as simple clickable buttons.