Set xAlign and yAlign on component with setters rather than variable access.
Store alignment internally as a proportion between 0 and 1 rather than a string. Simplified layout code. Move error handling to
the setter.
Simplified unit tests.
Close #107.
Merge pull request #113 from palantir/refactor-alignment

Set xAlign and yAlign on component with setters rather than variable acc...