Remove unneeded typedefs and functions.
Make thrust::device_vector behave like malloc instead of stl::vector.
Merge branch 'reduce_allocs'