updated code generation options for the VS2013 project
improved the typesafe id class

- defined the friend << operator for storage directly inside the class
- changed default template parameter for underlying id type from unsigned
  int to int
- as a debugging feature added a reference to the stored underlying id directly
  into the id class so that it's readily visible in the watch window
- improved some comments