Added RPC method "wait" that waits for specified number of seconds. Primary use will be for regression testing, but could also be used for user scripting eventually. Probably we should later add another version such as wait_on_block that waits for a specified number of blocks as well. Also renamed  some existing wait methods used internally in the code to clarify their purpose.