Separate module for parsing config.json

So that it is possible to use it in other modules