net: cache typedefs
Old:
BenchmarkCacheFindType-8	     200	   9006299 ns/op
BenchmarkFindtype-8	 			2000	    864077 ns/op

New:
BenchmarkCacheFindType-8	 5000000	       414 ns/op
BenchmarkFindtype-8	 		 2000000	       508 ns/op
General perf tuning: Turns out there was a select statement in jsonrpc.py
which would timeout after 0.1 seconds, making every rpc request 0.1
seconds longer than needed. As the data sent is in json, we can just
count the number of brackets to see if the counts match instead.

content: Settings now has a "parent" removing the need for "clone" and "merge".
Also fixed Args.SessionOrCreate + test.