fix(main) pad license code with leading zeros and handle errors
refactor(main) replace jsonquest with hapi tools