internal error handling begun.
Lots of front end css, some js fixed.

beginnings of logging in here, as well, but it's not working.