Move OFFSETOF hack to the only place where it's used
Move SortedList and friends to util/SortedList.hpp
Move p_drawtext() -> text::draw()
Move display specific stuff to namespace 'display'