Added IdImmediate, RefWithId. Minor fixes.

IdImmediate[T] marks those Refs where the ID can be immediately obtained.

Plus minor fixes as the other changes were applied to Impressory.
Build changes ready to publish this as 0.5-RC1 to bintray