added history pruning -- removal of non-existant paths, not sure if this strategy is good enough...

Signed-off-by: Alex A. Naanou <alex.nanou@gmail.com>
made a better not-available url handling strategy + added html, br and hr elements to formDialog(..)...

Signed-off-by: Alex A. Naanou <alex.nanou@gmail.com>