Full refactoring.

Notification does not maintain a loop.
Every command supports session update.
Improved return value format in some cases.

Interface functions are moved to the yahoo module.
Refactoring completion.