BaseResource .hpp mostly complete

Needs more comments and some final touches.