Added wsd testing samples.
Major refactoring of target ranking code to store results in SQL.