Adds r.js optimizer and basic build profile.