new option: direction

Added new user option to scale based on viewport height instead of width.  Having trouble getting the 'both' option to work, maybe you can take a look..  Declaring direction:width is the same as not declaring direction at all (defaults to normal function).  Updated demo html with demo of new option as well.