use newer hash syntax, fix http_code issue in crocodoc.rb