Split more functions into files

It's /really/ annoying, but again it needs manual script update+restart. I wish I knew how to get around that!! But oh well.