Add ability to place close button on either left or right

Making the left/right mechanism a 3-prong left/right/none enumeration ended up more awkward than I'd hoped, so I maintained the same show/hide close button functionality and just went with a left/right enumeration, with left as the default.