[BC break to 1.x] remove deprecated annotation
update build.xml for apigen
optimize imports
composer update
remove unused consts
fix phpdocs
fix deprecated use of constant
remove unused arugment
fix phpdoc
remote unused class Annotation