Reorganized headers so that inline functions using the context can be part of Rinlinefuncs (so moved context stuff to Rinternals)