More cleanly separated backend from front end and added bugs.txt.