Undo of changes that don't work because of caching. (reverted from commit 4f6ccb9d6e2dd63c64cd0c21cd881d3dc61c83c5)
Fixed issue with ajax caching even though cachebuster value was present in request.
Also improved workspace switching to properly save and dispose of the current workspace before switching.