update fireball-x/dev#615, move login code from page to core.
update fireball-x/dev#615, move login code from page to core.

cocos-creator/deprecated-editor,fireball-x/deprecated-editor,cocos-creator/deprecated-editor,fireball-x/deprecated-editor