Added rule generating order alert email
Added store admin role; Cleaned up code