resolve package dependencies before send
Merge branch 'master' into template

Conflicts:
	lib/config.sh
	lib/functions.sh
	lib/global-transforms.mog
	lib/site.sh
Merge pull request #42 from niksula/template2

Try two: Port all build system changes from master to template branch
Merge branch 'template' of github.com:omniti-labs/omnios-build into template

Conflicts:
	lib/config.sh
don't shadow global PKG variable in ask_to_install