Copied working files from master branch to playintegrated branch.

TODO:
	- database connection with mySQL (replace php files).
	- Fix paths