minor bugfix for Resource.
add package.json for BitFaucet example.