Enhancements for ANI support

This PR aims to support listing referenced ANIs in a separate anis.txt when the --ani option is passed in. Future commits shall also support listing framework defines.