Because contexts is mandatory, add isRequired when parsing config
Merge pull request #29 from tyx/fix/config-contexts

[Extension] update config
Reorder methods
Merge duplicated code
Decode json with error verification