reorganized memory management under a device driver, made more mocks, moved sdcard under it's own directory; removed obsolete files and fucntions