Fix broken edit link from last commit.
Clean up php, remove page links properly in edit mode.
Add background color to the toolbar if there is no admin bar.