Made ajax requests more secure by allowing module devs to block some
events from being called externally.