Tilt 2 compatibility including @judofyr's code

@judofyr's code works well, the only problem is that Markdown test uses some private methods that have slightly changed. This PR merges code from #746 and fixes the Markdown test. As a bonus, Gemfile is fixed to take a stable Slim instead of one from the master branch.