Foundations of Theoretical Mechanics II: Birkhoffian Generalization of Hamiltonian Mechanics