fixed some bugs with related issue and fixed up spec tests
Merge branch 'add-issues' into related-issues

Conflicts:
	kuansim-frontend