fix issue #3: word movement
Added a test and some refactoring for the 'w' motion code.
Use isAtEndOfLine() method instead of homemade
Merge pull request #256 from abijr/fix-wordmovement

pseudo-fix issue #3: word movement