Remove stale records from index

- Before regenerating index.html remove stale records from the index.
- Corrected article url generation.
Added first tests to verify the URL of an article