Fixed bug with multihome permissions, added path prefix for stores and urls