Remove old in-app code and old stats (bug 865134)

Don't merge - for review only