Add rotation operations in SphereDomain

Also add REPORT_ONLINE and REPORT_OFFLINE macros.