use log4php logging
create different configs for different slim modes
fix issue #23 and #24
set database to return utf8 to ensure proper json encoding
set content-type to application/json as appropriate
implement data loading scripts