Code Review: Refactors and ideas for expansion

I made some small changes, and then expanded your framework a bit to make a simple dynamic webapp. I didn't comment the commits much; I'd be happy to go over them together. I wouldn't recommend merging the changes, they're not necessarily things you want.