Update foundation repo from external source

Synchronizing with m21/mastercore current branch:
https://github.com/m21/mastercore/tree/new_m13