added player.login, ajax functions
client side app.js basics