fixed validateNumber (now E.164)

Fixed validateNumber according to http://en.wikipedia.org/wiki/E.164#Telephone_number_categories
So...this function may end up being faarrr more complicated than its name appears :) (maybe we should check how ts-iOS or ts-android handle this stuff)