Navigator.online removed and replaced with new function which uses ajax ...

...calls.