Bind events on 'deviceready'.