Basic pedometer and stair tracking

M7Model.swift is the meat of all the changes.