added enum and conversion function for resources

that way when hunt gives the front end piece the json version we can
convert to human readable stuff really easily