minimal core functionality

This is not ready for pulling just yet, but represents a spike implementation for discussion.