Levelization: source code structure

This de-tangles dependencies:
* basics/ no longer depends on any other modules
* crypto/ depends only on basics/
* protocol/ depends only on basics/ and crypto/

Reviewers: @scottschurr @mtrippled 
I didn't change it. But at some point I'm going to do a top to bottom cleanup of protocol primitives and then I'll modernize it.