Add model module
Move BufferLine to models
Add Buffer model
Support text input
Add notification support
Remove isActiveBuffer function
Support BufferOpened
Support close buffer
Add documentation, remove spurious methods and junk
Put class definitions on top