Maintain weak_ptr from Entity to EntityManager.
Clean up cmake defines. Make MAX_COMPONENTS an option.