Rewrote widgets and changed history, ajax, and widget modules