Add railtie and use appraisal to test against Rails versions 3.x to 4.0.0