Changed Calendar for event data

Commented out foreach in view to prevent errors. Added new controller
and js to handle json encode of data for events. Changed calendar_model
to output array type data.