fix history object;
setting authentication info;
authenticate when using the terminal;
adding visibility control for root or normal user;
minor fixes;
update terminal interface;
fix bug: do not carry user id and token in new tab;
change current user may close all terminal windows;
add beforeCreate to prevent normal user creating more than one pty;
clean up code;
check user permission when update job;
list user-specific permissions and show/hide buttons;