Moved configuration to lib and add spree namespace.