Fix resource manager

Add error code BLOCK_SIZE_TOO_SMALL, for when a block of order 0
is split. Add resource load for cube vertex attributes, will need to
tweak this and make sure that the resource is being freed and acquired
properly.