Major cleanup!  Removed extra stuff from lib.  Upgraded to the latest spromise. Broke out the resource manager in view to its own module