autoHeight, function Containers

Added autoHeight option: Container height is updated to the active
slide's height when transition has ended.
Everything is now contained within a function and variables and the
lots are now private for most of the functions and passed if needed.