Update to newweb

Project uses newweb library instead of uweb. Also made a number of improvements to simplify readability.