Fixes directory watching and refactors Battlefield.js to be a little cleaner.