Merge pull request #18 from xenog/newacc-fix

Fixed bug on newacc
Adding a JSON-RPC server
Adding a JSON-RPC server
Removing all but one custom exception
Adding newacc and newms commands and changing the way derivation indices are managed in the database
Adding JSON serialization tests
Adding addkeys command and fixing a bug in newms
Adding getwallet command
Adding getacc command
Adding new and genaddr commands
Adapting to the new JSON-RPC interface
Adding tests for WalletRequest and WalletResponse
Adding transaction commands
Update the bloom filter on peers when generating new addresses and broadcast transactions to the network
Adding TxHashEvent and RequestTx for wallets. Updating peer height on INV messages.
Fixed bug preventing the update of the peer height and improved logging
Handling block reorgs in the wallet
Send a full block locator the first time, then only best headers
Merkle block imports are stalled if there are inflight transaction downloads
Stalling solo transactions until the node is synced with the network