Pass "onAppWinClose" & "onRemoteApiReady" by app instance

Hi, Sihorton

Per our discussion, I pass callback functions, "onAppWinClose" & "onRemoteApiReady" by app instance self, not by params object
Moreover, I uses "===" instead of "==" to all string comparing cases

Thanks