Adds initWithCoder for use in xibs and storyboards. Moves initialization code from initWithFrame to a common init method.