Added export functionality to singleObject resources. Created a generic exporter which encapsulates the nessesary code.