Add configs module for reading JSON style config files

Updated the Rakefile to be include this new module and to be able to run
tests on all modules present.
Update main and window handling to use configuration