imported easy-serve.rb
refactor and fix warnings
added simple example