Minor changes to QBug to allow code sharing with MBug.
Merge branch 'master' of https://github.com/foam-framework/foam