Changed frontend to backbone, split node code into separate files