Tweak AJAX add new cheap html
Reject invalid sessions
Fix environment for RSpec tests