code cleanups, primarily remove session copy inserts
add logged-in check to header to apply to all pages
code cleanup, add comment-headers to each block
remove more copy code