time_since_last_state now returns value in seconds

As is expected by the views.
Merge pull request #8 from pufe/master

time_since_last_state now returns value in seconds