"79(1) On an appeal under section 78 the Secretary of State may— (a) allow or dismiss the appeal, or (b) reverse or vary any part of the decision of the local planning authority (whether the appeal relates to that part of it or not), and may deal with the application as if it had been made to him in the first instance."