Refactored Network Helper

Removed activity indicator for logged_in msg. Do it in login helper
instead.

Refactored the method to use the guard clause and ternary operator
instead.
Extracted a method to check if network is online
Added an activity indicator around the ping
Merge branch 'master' of ssh://github.com/c42/survey-mobile