Added support for threads + some changes for legibility, factorization, code standarization, etc
Merge branch 'david2'

Conflicts:
	application/views/helpers/WoeidName.php
	application/views/scripts/index/index.phtml