added typescript so that sourcemaps work in lib files; fixed chat so messages are handled in both directions
added typescript so that sourcemaps work in lib files; fixed chat so messages are handled in both directions

jpevarnek/uproxy,uProxy/uproxy,jpevarnek/uproxy,jpevarnek/uproxy,uProxy/uproxy,uProxy/uproxy,jpevarnek/uproxy,uProxy/uproxy,jpevarnek/uproxy,uProxy/uproxy