Rewrote settings to use json and be more flexible. Fixed several hard-coded paths issues.