app_name discovered from current working directory instead of hardcoded path

discovered app_name from current wording directory instead of hard coding; 
defined HOST, PORT globally; 
slept only until web2py starts