Implemented shutdown command and other changes:

A shutdown command will bring interfaces down in the reversed order that
they are listed in the state file.