Another cjdlua pull request

I'm gonna try to keep these coming over the next few days, then go on to work on DEJE when I run out of stuff to do on here.

Features:

 * New ConfigFile class
 * Multiline comment support
 * Saving support
 * Socket timeout / ping fails more politely
 * General structural cleanup