[pomodorojs] Organising signal handling. Closes #8.