MRG: bumpy numpy requirement to 1.5 / compat fixes

Increase numpy version requirement to 1.5 as fix for error missing
'np.percentile' on buildbots.

Refactor calls to ones_like, zeros_like for compatibility with older numpy.