(wip) refactoring of modules : added generic module function and prototype to be extended by all  specialized validation/completion modules
added format() function to build rules-based "human-readable" validation messages

see: https://gist.github.com/ideasmashup/6888726