Busted out the aposLocals functions into their own .js file, identified a simple strategy for busting up apostrophe.js generally, turned all scoped local variables into properties