Use markers rather than static buffer rows

Uses the new api in atom/atom#2605. The code is slightly simpler now.