Pushing up changes. Mostly support for X and Y chromosomes.

Also includes general bug fixes. Now html form parameters are actually used by the application. The application also has improved error handling and user alerting.