Properly closed MongoDB connections.

 - Whoops.
Added CORS headers.
Re-worked angularjs front-end almost entirely.
Fixed a couple small things with the stream process.