Some fixes for non-admin usage.

Fix error on initial page load, don't display admin-only links etc...