Moved getlimits and other support functions out to planetlab.[ch].