Dynamic Portfolio Optimization and Asset Pricing