Fixed few syntactical errors in integration tests. Also added Railtie based code to link gem with View templates.