First version fully working and commited to appfog