Critical RSOS and Minimal Models I: Paths, Fermionic Algebras and Virasoro Modules