Converted cotton to build with rebar and be an OTP application.