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 #202 from Soullivaneuh/api_delete

Add DELETE check api route
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
Use Buffer.byteLength instead of string length for Content-Length header

This prevents Content-Length mismatches when sending multi-byte characters.

See https://groups.google.com/forum/?fromgroups=#!topic/nodejs/LAxACfj5_KI.
Merge pull request #213 from joshisa/master

Use Buffer.byteLength instead of string length for Content-Length header
Merge branch 'master' of https://github.com/invosis/uptime