Remove ap and gemfile, they have issues on 2.x
Make pubtime work for sf