Templates upgraded

1. Changed file tree recursion to two-lewels tree.
2. Added loading images for waiting for ajax responces.
3. Templates rearranging.