Slim and REST

Added slim framework and basic url rewrite.