adding composer support; Release verison 1.0.0

Move some global functions (hook handlers) into the backend class.
Maybe not super-clean code quality, but does the job.

Bump version to 1.0.0

Change-Id: If47de2c6204146a788ea72cd79c7dc755335ea94
Merge "adding composer support; Release verison 1.0.0"