hburgund/roundware-server — pull request #161 by eosrei (2014-09-27 00:28:34+00:00)
Title: APIv1 refactor + APIv2 start

While working on the APIv2 I realized it was time to refactor the Roundware system to reduce the number of interdependencies between Roundware and Roundwared. They are separate programs. `roundware` is the Django web admin and API host. The other, `roundwared`, includes the daemon audio stream script rwstreamd.py.

This pull request contains no changed/new functionality for the web admin or APIv1, it exists to implement the major file structure changes to reduce any potential merge hassles. APIv2 exists, but is non-functional.

Change summary:
* roundwared/server.py -> roundware/api1/commands.py - Getting APIv1 code out of the roundwared daemon directory.
* roundware/rw/views.py -> roundware/api1/views.py - Both files exist. Only APIv1 code moved.
* roundwared/db.py -> roundware/api1/commands.py - Both files exist. Only functions used by server.py moved.
* roundwared/dbus.py -> roundware/lib/dbus_send.py - Code for sending data via dbus moved to a separate file.
* roundwared/convertaudio.py -> roundware/lib/convertaudio.py - File used only by APIv1 (soon APIv2) moved to the Roundware Library™.
* roundwared/discover_audiolength.py -> roundware/lib/discover_audiolength.py - File used only by APIv1 (soon APIv2) moved to the Roundware Library™.
* roundwared/daemon.py -> roundwared/rwstreamd.py - It was only one function/method definition.

Note: There may be a login change required for the assetlocation HTML page. Please test.