shell: add mdx_functions.
shell/hugo: add port number parsing logic, and use sleepc function.