Authorities are investigating a massive bushfire that prompted midnight evacuations as it ravaged bushland on the outskirts of Melbourne.