updates to add "UserNotes" to attempts

mods to update_attempts(), log_attempt(), list_attempts_by_user(),
get_attempt_details() in Attempt.php; mods to templates;