fix redirect url throw exception when user is logined
move app instance code into hall\app file
remove IN_APPS const
fix PHPMig can not work on new structure
improve PHPMig config integrated with Hall\App