Everyone is saying you should quit, which might be a reasonable suggestion, but it sounds like your issue is with working remotely. It sounds like you are able to be very productive and get satisfaction from your work when you can come into the office. If you don't want to quit, you could alternatively demand that they let you work from the office or relax development security. If they realize that saying "no" means jeopardizing the project, you might have some leverage.