Add all options to Layout

- add format direction
- extract options into constant.
add document and example, update project to modern RubyMotion.