Style updates.

Arrange methods according to type (internal methods, overrides of
superclass methods) and add pragma directives.
[GI#3] Fix scrolling issue on background view.

Fixes issue #3.