1918 timespent insight

This is for issue #1918.

I merged in the code from 1930 for the $user object acccess.

One commit refactors the doesInsightExist call which was retrieving every insight just do a count() on the array.
The next is the new insight.
And the last is removing the old one, because I wasn't sure if we should delete it or just unregister it.