PHOENIX-933 Local index support to Phoenix

Updated pull request after resolving conflicts and handling James review comments.
Thinking about this more, it should probably just be disallowed to create a local index on a table with immutable rows. I'm not sure if there's a need and I suspect we haven't tested this combination. We can always add it down-the-road.