Use argp parser to handle arguments

This moves most of the arguments from library to applications and also
changes design of parsers to effectivelly apply configuration change
from parser directly, not later by application.
8 jobs for master
in 4 minutes and 47 seconds and was queued for 4 seconds