Refactor model.js.

Every OAuth request goes through the same function.
Nice MessageUI system.
Fix bug: Dispose MessageBox completely.
Imple: MessageUI has alert, info, success, error interfaces.
Imple: Message box of MessageUI has its lifetime.
Imple: Rest of MessageUI commit.