added paperclip support, and a few other things. Still much to be done.