Added basic tagging functionality. Front-end cleanup very much needed.