Added loading overlay view, configured asset objects to be able to write to an instance of avplayeritem, and cleaned up some code