Add function to delete phrases and smart updating of exsitng words.
Fix problem with function wich deletes phrases.
Some more bugs founded in delete phrase. Went thorugh code to change bad references variables. AddPhrase has got changes in both js and backend to only accept a list of words instead of an array