Impelment support for system and user resources. Make resource keys more intuitive.

Some changes left out of previous commit

Impelment support for system and user resources. Make resource keys more intuitive.