Cleaned up hub RAM code

Combined the ugly copy-paste code for the hub RAM into a submodule for 8192 bytes that's instantiated 4 times to get 32K.