Major refactor

Is now a proper python library for long running use
Command line is converted to use this
Remove the unused Nest._set function

All writing is happening in either Device or Structure classes
Use common NestBase object

DRY up Device/Structure a bit