PHP module to allow JavaScript app to authenticate against Joomla v1.6 and login