replace double .. with single .

this happens when a replacement tag didn't exist.

Replace doubles before adding name. Handle triples.

Use regex to replace multiple separators.
Merge branch 'develop' of https://github.com/clinton-hall/CouchPotatoServer into develop