Basic serverside completed

complete with a series of ajax helpers!