Add func::boolval and func::cast.
Move log.sh.
Move IMOSH_ROOT_PID.
Make IMOSH_COLOR_* variables read-only.
Fix a bug.
Refactor handlers.
Update imosh.