Allow docked applications to be non-square.

As mentioned in issue #95, before this commit, applications docked in
the tray would be scaled to the largest square size that would fit on the
tray.  Now applications can be wide for horizontal trays and tall for
vertical trays.