iOS quirks for v2.2.0+ timing issue

https://issues.apache.org/jira/browse/CB-2096

Online event listener needs to be added before deviceready, otherwise the first online event never triggers.