Add preliminary test cases

I think it'd be good to have some test cases going forward. Will make development faster since things won't be breaking as much. 

I think it'd also be good to modify the existing code base a bit into testable modules - like try to separate from the server logic from the rendering logic. For example, I modified some of the server code to not do <ul><li> renderings but rather pass the data back as a json for the web client to handle. This makes the code a bit more testable :)