RequireJS configuration and general cleanup.