> The world is also moving to hosted communications (Twilio, etc) so there is less and less need for a local PBX, thus less demand for Asterisk.
Correct, but don't forget many hosted communications services use asterisk internally.
Twilio did use Asterisk in the past, although I believe they have switched to something else.