Move string functions into lib/string.c
Moved things around, partially implement scrolling