fix positional argument 'jobid' on log command;

retrieve log using the hubstorage api;

add 'login' command to create a configuration file specific for shub;

refactor common code used to check and import command dependencies.