Xib support

Refactored the xib support and added an example of how to use the TTSwitch in a xib.