Rewrite ConfigManager by using Ruby DSL technique

In order to avoid the dependency on external gem, replace the gem parslet
by using Ruby DSL technique.

Now PACKMAN will install the needed Ruby (>= 2.0) when the system does
not provide one.

Also includes other small changes.