Dynamic Capital Budgeting, Compensation, and Security Design