Canonical reduction for dilatonic gravity in 3+1 dimensions