A Unified Framework for Reinforcement Learning