Some code cleanup with major improvements for printf-like format API.

You will need my last patches for gnustep-base for this to work (https://github.com/jcbertin/gnustep-base).