Use bin metadata in history + save panels
Do less expensive assignment first

As we might not use the more expensive one
Use OR rather than if
Merge pull request #2050 from jsbin/feature/bin-settings

Use bin metadata in history + save panels