Moving everything into base application, adding faye and setting up sockets