Add enum34 code

https://bitbucket.org/stoneleaf/enum34
Add Role base class