Fix logging of case numbers.

Case number doesn't get loaded and set until after activity
has already loaded.

[#66352908]
Log stat pane open/close and trait changes

[#55993772]
Only log info opening and closing if trigger by a user

[#55993772]
Highlight caselog tab when active

[#47225119]
Merge branch 'master' into inabox

Conflicts:
	apps/lab/views/breeding_pen_view.js