Reorganize code
Use config lib to get default values + add logger prefix + Rails 3 compat