Update deprecated log reference
RF: Switch testEmulator to use @raises decorator
ENH - Don't set the origin in interactive mode.
ENH Convert TrialHandler to New Style

This commit changes TrialHandler (but not yet 
stair handler) to the python new-style classes, 
and adds a legacy file loader to convert from 
old-style classes to new ones.

It's mostly a proof-of-concept to address 
issue #125, backward-compatibility for pickled 
TrialHandlers.
BF: microphone - use a thread for recording (for stability)

- was seg faulting ~1% of trials, now seems solid (1000+ trials, no error)
NF: google speech-recognition

- command-line demo "say_rgb.py" does not work so well from Coder, no idea why
- speech-rec works much better without core-audio option for pyo
- will eventually merge microphone.py and google_speech.py
- demo untested on win or linux; the google part works with saved files
ENH: core.wait - checkPygletDuringWait flag

- this allows you to disable checking for pyglet events during a core.wait,
  which is useful during terminal-only / command-line usage to retain focus
- having a flag seemed better than having another parameter to core.wait
RF+BF: microphone - use core timing, better thread management

- fix block x2 bug
- use core.wait and core.getTime
- better explanation of why use _theGlobalRecordingThread
- auto-update .running and core.runningThreads
- remove global pyoSmaplingRate (not used for anything)
- test: stable for 1925 iterations before I quit the test
ENH: improved say_rgb demo; more robust google_speech

- say_rgb seems much improved when run from Coder, so move into demos
- but: still not as accurate as via command line; timing of text display?
- improved robustness and timeout handling in google_speech.py
ENH: say_rgb better word list
Merge branch 'master' of git://github.com/psychopy/psychopy

* 'master' of git://github.com/psychopy/psychopy: (26 commits)
  BF testGetCRSPhotometers now converts to list before doing anything
  TEST+BF Fixed bug in the test-case for finding the ColorCAL photometer
  DOC Corrected doc string
  TEST Added test-cases for findPhotometer and other photometer related functions
  BF findPhotometer no longer crashes from getting None passed in as a photometer
  RF Monitor center now uses the new getAllPhotometers to build its list
  RF+ENH We now use the photometer metadata for finding photometers.
  BF Fixed silly typo in the photometer exception handling block
  ENH Changed the longName of the photoresearch photometers
  BF set the wrong variable in PR650
  ENH Added metadata to all the photometer classes added long names and information on which hardware devices it drives
  TEST Tests for getSerialPorts
  RF cleaned up getSerialPorts by importing the needed itertools functions directly
  ENH added ComboBox for selecting which port we should look for the photometer at
  RF Moved the code for finding serial ports into its own function
  DOC: changelog and removed unecessary commented out code from logging.py
  RF Moved the setting of is open into the try-else block
  DOC fixed inaccurate docstring for findPhotometer
  BF Check if the serial port is connected before opening them
  BF A single failed photometer instantiation no longer stops getPhotometer
  ...
ENH: new constant: PSYCHOPY_USERAGENT

- makes consistent self-identification easier in http(s) transactions
- not so functional: its an optional arbitrary string that shows up in server logs
DOC: more explanation of the user-agent constant
RF+DOC: google-speech options; googlespeech.rst, changelogs

- RF: options-handling was messing with sphinx-build (and was ugly)
  remove command-line support (for now); still needs some internal clean-up
- move speech.google_speech.GoogleSpeech to speech.GoogleSpeech2Text
- googlespeech.rst looks reasonable
ENH: core.shellCall accepts list

using a list handles whitespace in filenames effortlessly
RF+DOC: merge speech.py into microphone.py; redo .rst

- move speech.py classes into microphone.py (no command line google-speech)
- add microphone.rst documentation page
- SimpleAudioCapture -> AudioCapture
- GoogleSpeech -> Speech2Text
RF: AudioCapture - better handling of Recording object

- no thread needed, per Olivier Belanger
- move the class inside AudioCapture, much better than having one global rec thread
ENH+DOC: BatchSpeech2Text, plus .rst
DOCs
ENH: get pyo version in info.py; add sampletype in AudioCapture