Futher changes to admin -> public url script

1. Re-added the database discovery steps to ensure it works in
production
2. Added *all* editions to the list now
3. Added organisation edit/show admin links