Some really annoying memory issues with the way entity lib is being handled

I don't think the manager and in script entity pointer know about each
other so the shared_ptr doesn't count the right # of references

how to resolve hmm