[NCore] Move command handling to another class
[Global] Factorize custom boolean parsing. Fixes #241