Break out package checkbox creation into its own function.

The checkbox -- used both to select a package and to show its
current selection state -- is more useful when able to be created
with a single call for future changes.
Show dependency list and checkboxes when viewing packages.