Move memory access functions from ptrace.c to memory.c
Add lower level, arch specific memory_copy_[read|write] function pointers
Remove gdb interface function [read|write]_mem
Call directly their replacements memory_[read|write]_gdb