Added memories to $scope.cpu
Writing to attached buses on memory content change if the gate is set to "write".
Removed control wires
Reading input wires at the memory correctly and updated ManualSwitch to handle initial values of 1 correctly.
Correctly react on initial values of wires at registers.