Removed use of RefPtr

Replaced usage of RefPtr with shared_ptr for now.  Long term, some items
will be moved to unique_ptr for performance gains.