Australia is to have a new government, after the conservative coalition lost power to the centre-left Labor Party.