Lots of deletions in here - we are relying on tern now for all of this functionality, so we don't need it here anymore