Bumped app version to 3-1

Fixed bug introduced in last commit
Fixed invalid HTML
Added analytics to user and error pages