Refactor remote class. Adopt coffeescro[t
A bunch of stuff