Elminate UITextAlignment deprecation warnings.

Use NSTextAlignment on iOS 6 and UITextAlignment on iOS 5. Solution based
on examples from http://stackoverflow.com/q/11920321/79202.
Merge pull request #42 from theory/alignment-deprecation

Elminate UITextAlignment deprecation warnings.