Rpijs: Added websocket function.

Signed-off-by: matematik7 <domen.ipavec@z-v.si>
Dashboard: Added websocket to gpio page.

Signed-off-by: matematik7 <domen.ipavec@z-v.si>
Dashboard: Removed some unnecessary complication in gpio.

Signed-off-by: matematik7 <domen.ipavec@z-v.si>
Dashboard: GPIO added toggle to tone and $scope.$apply to websocket update.
Signed-off-by: matematik7 <domen.ipavec@z-v.si>
GPIO: Fixed some websocket problems.

Signed-off-by: matematik7 <domen.ipavec@z-v.si>