Early Christmass this year: Added more API functionality, added first tests, added logging module. Warning - changes in models!