Structure of the Gravitational Action and its relation with Horizon Thermodynamics and Emergent Gravity Paradigm