JSON call works properly now
Added callback and code cleanup
Merge branch 'master' of https://github.com/lsiu/tails-server