Closes #2129
This adds support for B2 application keys.
This includes support for the upcoming B2 application keys feature.