BMK-files: added global "apptype" and helper bmk.AppType()

Both return the string representation of the app type ("gui", "console")