StatsManager additions

I've added an abstract StatsManager and the stub for an Android
implementation, as well as the starts of a Java implementation (still in
progress).  The logging class used is not correct, but this should be
able to be fixed easily.