Add jshintrc, fix trailing whitespace
More whitespace fixes, fix component deprecation warnings
WIP: working setupContainer
WIP add tests to cover legacy behavior