Inadvertent whitespace being output to client when including analytics.php

All the included API files have a closing `?>` tag and some of them have whitespace afterwards.  This creates unexpected output for the client, which breaks parsing things like JSON, and can cause errors with starting sessions, etc.

I removed the closing tags, and the extra whitespace.