Lots of small fixes.

Added curtains to hide contexts, basic support for context alerts, fixed
resizing bugs and closed down libraries that were too open compared to what
was needed.

Also fixed a bunch of HTML/CSS "issues".