Add common

This includes show_message, hostname, filename, system, execute, reboot,
as well as global variables.
Add copyright/license headers