replace casperjs with selenium

Better use underscore, i.e. get_logged_instance (same for other function names below), since we use underscore instead of camel case it in all our python code.