diff --git a/.gitignore b/.gitignore
new file mode 100755
index 0000000..0e87603
--- /dev/null
+++ b/.gitignore
@@ -0,0 +1,27 @@
+# Created by .ignore support plugin (hsz.mobi)
+### Yii template
+assets/*
+!assets/.gitignore
+protected/runtime/*
+!protected/runtime/.gitignore
+protected/data/*.db
+themes/classic/views/
+/yii
+.idea
+nbproject
+.buildpath
+.project
+.settings
+Thumbs.db
+/vendor
+composer.phar
+.DS_Store
+phpunit.phar
+/phpunit.xml
+/.vagrant
+/vendor/
+/fordelete.txt
+/done.txt
+/certificates.php
+/backup
+/storage/
diff --git a/.htaccess b/.htaccess
new file mode 100755
index 0000000..0bd2601
--- /dev/null
+++ b/.htaccess
@@ -0,0 +1,159 @@
+AddDefaultCharset utf-8
+
+
+
+ Options +FollowSymlinks
+
+ RewriteEngine On
+
+
+
+
+
+ RewriteBase /
+ # deal with admin first
+
+
+
+ RewriteRule ^storage/(.*)?$ /storage/$1 [L,PT]
+
+ RewriteCond %{REQUEST_URI} ^/(admin)
+
+
+
+ RewriteRule ^admin/assets/(.*)$ backend/web/assets/$1 [L]
+
+ RewriteRule ^admin/css/(.*)$ backend/web/css/$1 [L]
+
+ RewriteRule ^admin/js/(.*)$ backend/web/js/$1 [L]
+
+ RewriteRule ^admin/images/(.*)$ backend/web/images/$1 [L]
+
+ RewriteRule ^admin/fonts/(.*)$ backend/web/fonts/$1 [L]
+
+
+
+
+
+ RewriteCond %{REQUEST_URI} !^/backend/web/(assets|css|js|images|fonts)/
+
+ RewriteCond %{REQUEST_URI} ^/(admin)
+
+ RewriteRule ^.*$ backend/web/index.php [L]
+
+
+ RewriteCond %{REQUEST_URI} ^/(assets|css)
+
+ RewriteRule ^assets/(.*)$ frontend/web/assets/$1 [L]
+
+ RewriteRule ^css/(.*)$ frontend/web/css/$1 [L]
+
+ RewriteRule ^js/(.*)$ frontend/web/js/$1 [L]
+
+ RewriteRule ^images/(.*)$ frontend/web/images/$1 [L]
+
+ RewriteRule ^libraries/(.*)$ frontend/web/libraries/$1 [L]
+
+ RewriteRule ^img/(.*)$ frontend/web/img/$1 [L]
+
+ RewriteRule ^files/(.*)$ frontend/web/files/$1 [L]
+
+ RewriteRule ^fonts/(.*)$ frontend/web/fonts/$1 [L]
+
+ RewriteRule robots.txt$ frontend/web/robots.txt [L]
+
+
+ RewriteCond %{REQUEST_URI} !^/(frontend|backend)/web/(assets|css|txt|js|images|fonts|img|files)/
+
+ RewriteCond %{REQUEST_URI} !index.php
+
+ RewriteCond %{REQUEST_FILENAME} !-f [OR]
+
+ RewriteCond %{REQUEST_FILENAME} !-d
+
+ RewriteCond %{HTTP_HOST} ^www\.(.*)
+ RewriteRule ^(.*)$ frontend/web/index.php
+
+
+ RewriteCond %{HTTP_HOST} ^([^www].*)$
+ RewriteRule (.*) http://www.%{HTTP_HOST}%{REQUEST_URI} [L,R=301]
+
+ RewriteCond %{THE_REQUEST} \s/+(.+?)/+[?\s]
+ RewriteRule /$ /%1 [R,L]
+
+
+
+ RewriteCond %{HTTP_HOST} ^([^www].*)$
+ RewriteRule ^(.*)$ http://www.%1/$1 [R=301]
+
+
+
+#для возможности загрузки файлов парсера
+
+ php_value upload_max_filesize 20M
+ php_value post_max_size 30M
+
+
+
+# кеширование в браузере на стороне пользователя
+#
+#
+# ExpiresActive On
+# ExpiresDefault "access 7 days"
+# ExpiresByType application/javascript "access plus 1 year"
+# ExpiresByType text/javascript "access plus 1 year"
+# ExpiresByType text/css "access plus 1 year"
+# ExpiresByType text/html "access plus 7 day"
+# ExpiresByType text/x-javascript "access 1 year"
+# ExpiresByType image/gif "access plus 1 year"
+# ExpiresByType image/jpeg "access plus 1 year"
+# ExpiresByType image/png "access plus 1 year"
+# ExpiresByType image/jpg "access plus 1 year"
+# ExpiresByType image/x-icon "access 1 year"
+# ExpiresByType application/x-shockwave-flash "access 1 year"
+#
+#
+#AddOutputFilterByType DEFLATE text/plain
+#AddOutputFilterByType DEFLATE text/html
+#AddOutputFilterByType DEFLATE text/xml
+#AddOutputFilterByType DEFLATE text/css
+#AddOutputFilterByType DEFLATE application/xml
+#AddOutputFilterByType DEFLATE application/xhtml+xml
+#AddOutputFilterByType DEFLATE application/rss+xml
+#AddOutputFilterByType DEFLATE application/javascript
+#AddOutputFilterByType DEFLATE application/x-javascript
+#BrowserMatch ^Mozilla/4 gzip-only-text/html
+#BrowserMatch ^Mozilla/4\.0[678] no-gzip
+#BrowserMatch \bMSIE !no-gzip !gzip-only-text/html
+#Header append Vary User-Agent
+#RewriteEngine On
+#AddEncoding gzip .gz
+#RewriteCond %{HTTP:Accept-encoding} gzip
+#RewriteCond %{REQUEST_FILENAME}.gz -f
+#RewriteRule ^(.*)$ $1.gz [QSA,L]
+#
+## Cache-Control
+#
+## 30 дней
+#
+# Header set Cache-Control "max-age=2592000, public"
+#
+# # 30 дней
+#
+# Header set Cache-Control "max-age=2592000, public"
+#
+# # 2 дня
+#
+# Header set Cache-Control "max-age=172800, public, must-revalidate"
+#
+# # 1 день
+#
+# Header set Cache-Control "max-age=172800, private, must-revalidate"
+#
+#
+#
+##Запрет отдачи HTTP-заголовков Vary браузерам семейства MSIE
+#
+#BrowserMatch "MSIE" force-no-vary
+#BrowserMatch "Mozilla/4.[0-9]{2}" force-no-vary
+#
diff --git a/README.md b/README.md
old mode 100644
new mode 100755
index e69de29..e69de29
--- a/README.md
+++ b/README.md
--
libgit2 0.21.4