Documented even more, moved code around and make everything use WebResources.