Added composer and htaccess rules.
Added Slim-json lib. Adjusted sample code.