Adding support for urls without language

Please review the code changes, specially the new method get_definition() that has a simplified method for detecting valid request url against several options with or without language url parameter.