updated to make the unit tests pass and standalone-mode work. still can't get the compiled output packaged properly to work in the ba-server plugin-mode.