Fixed (supposedly) most problems with UNIX/Win paths

Signed-off-by: Ilya Mikhaltsou <morpheby@gmail.com>
Implemented Main class with exception logging

Signed-off-by: Ilya Mikhaltsou <morpheby@gmail.com>
Merge branch 'as-application'