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 
Is this used instead of std::copy (or memcpy()) because the destination buffer needs to be big-endian? Otherwise, this should use std::copy.