Some clean-up of divider code in preparation for bugfixes

Made an actual class for the imecontroller in divider to
prepare for some more complicated interactions. Also consolidated
the minimize/resizability update logic for the same reason.

Bug: 150781668
Test: no change. things should work and tests pass
Change-Id: I68f1b47e092ed35311cbcd2878e4c271ac161a8c
3 files changed