Removed wiki related code.
Added a function for switching layers in cross domain API.