Initialize environment by hooking into rails initialization