Fix availability calculation for hourly stats

The bug happens when a check is just started or paused

Refs #197
Newline in the end of file
Change calcul of availability & downtime for hour & day to take paused time & tested time into account
Fix errors on uptime bar : color & duration
Fix errors on uptimeBar
Fix error when a check as a long period of pause
Remove condition on current interval in uptimeBar
Merge pull request #200 from fzaninotto/availability_fix

[RFC] Fix availability calculation
Fix enter key action in edit form

Closes #204
Merge pull request #206 from fzaninotto/enter_pause

Fix enter key action in edit form
20131206 Merge branch 'master' of git://github.com/fzaninotto/uptime