Added once to Resource type

Resource now has a once method to match EventEmitter.
Merge pull request #7 from asterisk/once

Added once to Resource type.