Moved snInputMatch directive to more central location.
Started client-side unit testing.