minor code and style tweaks.
add "no widgets" logic to post edit.
change widget to use $keys instead of a select list
dead code commented out
add comments, remove commented-out code