Go back to rails for appuser and group

Also add the apache user to the rails group