Spherically symmetric gravity coupled to a scalar field with a local Hamiltonian: the complete initial-boundary value problem using metric variables