Improvement: format and rformat

format, rformat: interface for boost::format()
also: fixes.
Merge branch 'dev'