Added startup hooks system
Added capability checks, target switching notice/hook