Composer, readme, fixes

Support for composer, updated README with informations about installation etc., some changes in library to communicate properly with staging.