Improved code style

In this pull request:

  * Constants are uppercased and moved to consts.py 
  * Regexps were moved to own namespaces DatePattern and TimePatten 
  * Few regexp were simplified
  * Function compose have been rewritten. We like Haskell, but function was too magic