Adds ajax request for creating new projects

The new file sync.js contains all the functions for making ajax requests
and resolving them.