Major reform. Add Log4r, config files, etc...