enforce coding standard: explicit casts
Improved stat accumulation and context names
merge upstream/master into andrew/inertia

Conflicts:
	interface/src/Application.cpp
modified scope of devices stats
add "simulate" stat name to Avatar::simulate()
fix whitespace formatting
fix accidental broken class definition
Merge pull request #3148 from AndrewMeadows/inertia

improved performance stats API