The Derived Critical Locus and First Steps in the Classical BV Formalism