Add eargs function from /usr/local/share/poudriere/common.sh.
Make umountfs() use eargs(), matching implementation in /usr/local/share/poudriere/common.sh
Move functions taken from the internals of poudriere into a separate file.