Move memory layout to driver.

This change moves all allocation data copies to the
hal.  Also removes stride from the runtime.  Follow on
changes will remove the malloc pointer from the runtime.

Change-Id: I30967c739800cd4b97186e9fc8b69f26a3f2787d
19 files changed