Added activate event for Tab control
Fixed wrong RegExp in hasClass method
Added allowClose property for Tab control