name: Implementing appendNumber/toNumber to use nonNegativeInteger

appendVersion/appendSegment and toVersion/toSegment are now aliases for
appendNumber/toNumber.

Change-Id: I6cd549978601051bd6e288f2e7ebb95e3d97187b
Refs: #1361
diff --git a/src/management/ndnd-controller.cpp b/src/management/ndnd-controller.cpp
index 1d3fb60..a283826 100644
--- a/src/management/ndnd-controller.cpp
+++ b/src/management/ndnd-controller.cpp
@@ -121,7 +121,7 @@
 {
   // Set the ForwardingEntry as the content of a Data packet and sign.
   Data data;
-  data.setName(Name().appendVersion(ndn::random::generateWord32()));
+  data.setName(Name().appendVersion(random::generateWord32()));
   data.setContent(entry.wireEncode());
 
   // Create an empty signature, since nobody going to verify it for now
@@ -166,7 +166,7 @@
   // Create an interest where the name has the encoded Data packet.
   Name interestName;
   interestName.append("ndnx");
-  interestName.append(m_ndndId.value_begin()+6, m_ndndId.value_end());
+  interestName.append(m_ndndId.value_begin() + 6, m_ndndId.value_end());
   interestName.append(entry.getAction());
   interestName.append(data.wireEncode());