added support for /entries/:id and /entries?count=X; also some basic exception handling