Add install action and rework the way actions are chained.

No need to have a separate main function for raw meka and for the
one built from the mekafile.