Updated to use Rest interface

Using local rest interface to get stats without requiring admin accounts. Requires --rest