Add Convenience Methods For Orientations (P3)

adds methods isVertical() and isHorizontal() for linear layouts and grid
layouts

patch 2: removes use of 'this'

patch 3: use two space indents, instead of tabs
Merge pull request #11 from f2prateek/master

Add Convenience Methods For Orientations