Add program formatter to logger.
Better logging when about to crash.
Fix `programs` api endpoint.

We need to filter out orphaned programs early so they don't make it to
the normalization point.
Merge pull request #242 from mozilla/241-fix-unpopulated-programs-error

Fix unpopulated programs error