Remove duplicate call to close file

The defer statement will take care of this on return.
Add semi-intelligent template
Add package Framework interface

This includes the code in main() for building the Frameworks and a
mock-up Debian struct to implement it.