Refactored Ajax to use single endpoint, now the action to preform is specified by
data: { action: 'action name here'}
when performing the jquery.ajax() request.