ENH: Added foamDict utility

A small utility useful for scripting. There is a bit of a nasty catch in that modifying a dictionary results in all comments being removed.

Cheers

Michael