added nfactor rpc command

added json object to getwork which contains current nfactor
added rpc command getnfactor which does same without getwork