Changed the instance locking for the app to use sockets instead of file locking. Fixed #34
Fixed fatal error bug at gadget gui update, fixed gadget size preview bug