begin binding locales (need to init_locales in the right place, still).
fix indentation in some places.
add some assertions.
keyword_t and direction_t are moving into their own module.
direction parser gets new initialization function, for use in jsonconf later.
add unit tests for directions.