Bulk reformatting of legacy code

A previous bulk formatting round had butchered a lot of the legacy
code by using a max line width that was much too narrow.
Merge branch 'version3' of github.com:bedatadriven/activityinfo into version3