elm logger

moved this from the Logging repo (aspnet/Logging#38), removed the Mvc dependency from the sample, and fixed scoping
just copied it from the internet, but I actually don't need this for now because I have no javascript code