Split terminoteFunctions.h into .c and .h files. Got rid of some
unnecessary includes.