abstracted out codebase settings and moved public files to public dir