Remove indexes some more

This branch especially focusses on removing m_idx and r_ptr.  It starts switching code from using m_idx to using a struct monster *, removing a layer of indirection and dependence on outdated structures.