Remove unnecessary variable.
Add support for completion result notifications.
Fix implementation of UpdateContent.

Added TODO about future improvement to do partial updates.
Added some (currently broken) code-completion code.