AJAX basics

Basic communication between front end and back end. Many things to do left, obviously.

- get dates
- basic AJAX function