Integrating Resource Management and Timeline-based Planning