Add binary log.

Move around buttons.
Add binary log functionality and related resources.