Added setTransformOnlyServerElements to transform only local elements

Fixes #481
Fixes #457