Add composer support

Added composer.json and moved files into lib/ folder