Committed old Anki 1.2 sync server code. It's not very generic. :-/
Got sync working through part of the 'fullup' process (media is
currently failing).
Got a complete 'fullup' working!
Reduced the collection.py module to purely managing threads.
Actually integrated the thread_pool into the SyncApp.
Squashed commit of the following:

commit cb509e8f75e3dcdbc66327be4bfbf6661aa084b5
Author: David Snopek <dsnopek@gmail.com>
Date:   Fri Jul 12 22:06:28 2013 +0100

    Cut down 'import' statements to only modules actually used.

commit 0ea255115e095e31af5a991e9cce2b5b15cb496d
Author: David Snopek <dsnopek@gmail.com>
Date:   Fri Jul 12 22:00:06 2013 +0100

     * Add getCollectionManager() so that the whole process can share the same ThreadingCollectionManager object.

     * Got the RestApp actually working!

commit 00997bab600b13d4b430ed2c2839b1d2232f55ed
Author: David Snopek <dsnopek@gmail.com>
Date:   Fri Jul 12 21:04:58 2013 +0100

    Got the sync_app working again (more or less)

commit 459c69566bb92d2c0195a384e067d98c059bdea7
Author: David Snopek <dsnopek@gmail.com>
Date:   Fri Jul 12 19:47:40 2013 +0100

    Started implementing test for the RESTful callbacks that PrepECN is going to need.

commit 7ffbac793f9bf45ab9056c1de475422b8742e107
Author: David Snopek <dsnopek@gmail.com>
Date:   Fri Jul 12 17:19:06 2013 +0100

    Started work on a WSGI app for RESTful access to Anki based on Bibliobird code here:

      https://raw.github.com/dsnopek/bbcom/master/AnkiServer/AnkiServer/deck.py

commit 8820411388ce0c2b7b14769c614c22c675d2dbdd
Author: David Snopek <dsnopek@gmail.com>
Date:   Fri Jul 12 15:03:56 2013 +0100

     * Seperated the collection and threading code.

     * Implemented a new interface to interact with the collections, which will hopefully be more transparent and testable.
Corrected INSTALL.txt.
Got nearly 100% test coverage for AnkiServer/collection.py
Merge branch 'anki_2_0' of https://github.com/dsnopek/anki-sync-server into anki_2_0
Refactored AnkiServer/apps/rest_app.py so that it is actually testable.
Got almost 80% test coverage of AnkiServer/apps/rest_app.py and fixed some bugs.
 * Added new handler type 'card' and moved the position of 'note'

 * Got us actually adding notes and cards to the Anki collection!
 * Simplified the *HandlerGroup to *Handler.

 * Added lots of operations connected with models and notes.
Implemented import support!
Added support for getting the buttons and the estimated interval times (no tests!)
Integration testing reveals some insanity that snuck into the repo. :-)
Moved logging into a utils module so we don't have to duplicate it.
Added an example supervisord config file.
Moved import code into it's own module so things outside of the ImportExportHandler can use it (like a setup_new_collection function).
Got the supervisor conf actually working and tested.