Switch to UNIRest - simpler, fix leak, start prefs

UNIRest is a simpler interface with less of a memory issue
@autoreleasepool fixed the memory leak from the thread
Started to add preferences window drawing