api client fixes and tests
app.js fix
Merge branch 'master' of github.com:jbazant/mtgim
tracking changes and reverting unsupported changes