Updated tests
Cleaned up the hooks

Removed random trims and some commented out trash
Removed some trash from the template class

Removed debug code and hacked "trim" functions
Fixed bug in the inserter that made it always append the head regardless of if it found a </head>
Spacing issues