fix bug issue-52, add the listener for boot completed and unlock.

add the listener for boot completed and unlock.
Merge pull request #202 from whuthm/ios-style

fix bug issue-52, add the listener for boot completed and unlock.