Made a mess of things trying to get a production build to work. Which has become more complex than I expected. Sorry @icydee. :(
Fix .gitignore - let's not make a mess here.
Implemented our own template loading module. In  turn, this fixed all the issues with r.js. So now, build/build.sh properly generates our first production build of the app! How exciting? :O
Changed .gitignore again so that the bower deps don't get committed.
We now have a working production build that behaves the same way as the development version. W00t.
Moved most deps to  useing Bower. Good progress on the production build.
corrected sbw.pl help