moved most of app over to backbone