Parser static removal

Unfinished removal of getstrtoken(), replacing with gettoken(), which takes a buffer instead of using a static char array.