app_name discovered from current workding directory instead of hardcoded path

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