add constructors for empty, ones, zeros and random.
add constructors for empty, ones, zeros and random.

This also refactors out array (previously barray) and uses common code
to handle the difference between local and distributed construction.

jwittenbach/bolt,andrewosh/bolt,bolt-project/bolt