Refactoring

Get PCM data on a separate thread.
Refactor D3 bar graph code for transitions and actually updating instead
of creating/deleting each element every time.