add to_h and as_json methods to entity.rb
add release script