Server works! Renew server API.

Examples:
-----------------
Create new event:

$.post('/newevent', {
  title: 'Event 0',
  description: 'testing',
  startDate: "2014-02-11",
  endDate: "2014-02-14",
  deadline: "2014-02-10",
  duration: "2",
  eventId: "123",
  participants: [
    { personId: "123456", name: "Andrew Liu", slot: [
        { startDate: '2014-02-12', startTime: '2', duration: '3' },
        { startDate: '2014-02-13', startTime: '4', duration: '1' }
      ]
    },
    { personId:
      "654321", name:
      "Andrew Ng", slot: [
        { startDate: '2014-02-12', startTime: '2', duration: '1' }
      ]
    },
    { personId: "123123", name: "Andrew Luck", slot: [
        { startDate: '2014-02-13', startTime: '3', duration: '3' },
        { startDate: '2014-02-14', startTime: '3', duration: '3' }
      ]
    }
  ]
});

---------------
Update slot:

$.post('/updateslot', {
  eventId: "123",
  personId: "123456",
  slot: [
    { startDate: '2014-02-13', startTime: '2', duration: '3' },
    { startDate: '2014-02-14', startTime: '4', duration: '1' }
  ]
});

---------------
Get event with event ID:

$.get('/getevent/<event ID>');

---------------
Get event list of a person with person ID:

$.get('/eventlist/<person ID>');