Extract mount into pkg.

Mount is self contained and generic, it should be in pkg, to allow other pkg modules to use it.