Major overhaul!
* Fixed legal move checking bugs with en passant.
* Added API methods.
* Updated example index.html page.
* Misc improvements.