Added once to Resource type

Resource now has a once method to match EventEmitter.

Added test for new method.