Add delegate declarations to CEWindowController

Also sort the order of some methods
Update line number view when its window resizes (ref #74)

This is NOT the fixing of issue #74 but just a enhancement.