Moved SLA functionality into dedicated script.
Added SLA reporting query feature.