Made widget system more fault-tolerant. Individual widgets can now fail without all system failing.
Fixed duplicate html and added access control to page details and dev-tab.