Two new shell scripts and corrections in old ones

As the library is here for that, I externalize some functions in it
from existing shell scripts - I also add a model for new Markdown pages
and a test script for some console tests (just colors for now but it's
a wip)