Separated mock system functions.

Moved all mock target system function implementations into
TargetSystem.c. Added all necessary accessors and manipulator functions
for test purposes. No test functionality changed.