Refactored inputAutoExpand jQuery plugin

Extensive clean-up of $.fn.inputAutoExpand. Expanding/contracting width and height should work
simultaneously now.

Change-Id: I035b54d212dbb1a06d8bb18da95390b27130954b