Merge pull request #28 from jedi4ever/master

fixing resizing and scroll region, thanks :D
using tabs for indention.
Fixes failed scroll tests. Slightly change behaivior with scrollRegions
Prepare moving diff/apply to own class. See #23
removing double defined functions
adding further emits