Added tests to backend. Reworked perf and sgd backends to implement backend_interface. Switched perfconvert to work directly from sgdbackend.
Finished merging in perf.
All tests running for both sgdbackend and perfbackend. Ready to merge back.