Extracting accessory definition from Core.js

I've extracted accessory definition from Core.js, making it easier to define an accessory with it's own particular behaviour without it interfering with the rest of the HAP-NodeJS code. There is more info in the readme.txt, which you would probably want to rewrite if you are interested in merging this.