Application to the authorities for connection to the grid, and permitting