[#6960] flush the session before flushing the BatchIndexer, so it has all objects
[#6829] Add license header to new css file

Signed-off-by: Tim Van Steenburgh <tvansteenburgh@gmail.com>