Add section headers and gaps

To make this happen I have added two new hook in DAOListView.
A patch has been submitted to FOAM upstream covering this change.

Also fixed indentation and spacing.