Added logic to hide other currently visible divs when new operation is selected.

Factored the folder tree operations out of fieldbook-common.js into a separate script file

GCP-9015

Post commit code review : Dan Jao