Resources

Added the Resource object and a Resources module to keep it DRY.