Rewrote sd controller components - may not compile

Structured as finite state machine
Worked out some subtle timing issues
Started implementing clock stretching - turn off the sd clock until
write to ram is completely done