Merge pull request #5 from mably/confmerge

ppc: merged conformal/master, app up and syncing
Add the starting+current priority to getrawmempool.
A few nitpicks with recent getrawmempool updates.

This commit addresses a few nitpicks in the recent getrawmppol update
which populates the starting and current priority fields.

In particular:

- Move the new calcInputValueAge function before the function which
  invokes it so it is consistent with the rest of the mempool code
- Double space after periods for consistency
- Correct the comments for calcInputValueAge to indiciate that inputs
  which are in the the memory pool count as zero toward the value age
  rather than the incorrect claim that that the overal input value age is
  zero when one of them does
- Rename endingPriority to currentPriority to match the RPC field and its
  actual function
- Make the comment about using zero when input transactions can't be found
  for some reason more accurate since there can be (and frequently is)
  more than one input transaction
Use .haveTransaction in new getmempool RPC code.

The mempool is already locked and the exported version locks it, so the
unexported version is needed.
ppcwallet path fix
MoneySupply added to getinfo
getdifficulty command update for ppc compatibility
Catching SIGTERM signal
import btcjson fix
msgTx time fix
issue #3: detecting peer looping messages using message signature cache
ppc: upnp fixes
ppc: string replacement btcd -> ppcd
Update btcd.conf to use ports used by Peercoin

Peercoin protocol used ports 9902.
Merge pull request #11 from peerchemist/patch-1

Update btcd.conf to use ports used by Peercoin
Ensure all tickers are explicitly stopped.

As pointed out in #189, according to the Go documentation, a ticker must
be stopped to release associated resources.  This commit adds a defer call
to stop two tickers there were previously not being stopped as well as
changes two others that were being stopped over to use defer so it's more
consistent.

The other ticker in ScheduleShutdown is replaced and already calls Stop
before replacing it, so it has not been modified.

Closes #189.

ok @jrick
Merge remote-tracking branch 'remotes/upstream/master' into confmerge
ppc: amount unit fix for peercoin