Begun stripping out BSync code and preparing functions for GsSync.
More comments.