diff --git a/static/favicons/.notempty b/digimarks/__init__.py
similarity index 100%
rename from static/favicons/.notempty
rename to digimarks/__init__.py
diff --git a/digimarks/models.py b/digimarks/models.py
new file mode 100644
index 0000000..e69de29
diff --git a/digimarks/views.py b/digimarks/views.py
new file mode 100644
index 0000000..e69de29
diff --git a/static/css/digimarks.css b/static/css/digimarks.css
deleted file mode 100644
index 18722b0..0000000
--- a/static/css/digimarks.css
+++ /dev/null
@@ -1,67 +0,0 @@
-/**
- * digimarks styling
- */
-
-/** Navigation **/
-
-nav .sidenav-trigger
-{
- /* Fix for misalignment of hamburger icon */
- margin: 0;
-}
-
-nav .sidenav-trigger i
-{
- /* Make the hamburger icon great again */
- font-size: 2.7rem;
-}
-
-/** Cards and tags **/
-
-.card .card-content,
-.card .card-reveal
-{
- padding: 12px;
-}
-
-.card.tiny
-{
- height: 140px;
- overflow: hidden;
-}
-
-.card.tiny .card-title
-{
- font-size: 18px;
-}
-
-.card .card-reveal .digimark-card-header,
-.card .digimark-card-header.activator,
-.chip.clickable
-{
- cursor: pointer;
- /*display: block;*/
-}
-
-.card .digimark-card-header-tags
-{
- padding-top: 10px;
-}
-
-.card-image
-{
- min-width: 60px;
-}
-
-.card-image i,
-.list-image i
-{
- padding: 5px 0 0 15px;
-}
-
-.card.horizontal .card-image img.favicon,
-.list-image img.favicon
-{
- height: 60px;
- width: 60px;
-}
diff --git a/static/favicon.ico b/static/favicon.ico
deleted file mode 100644
index 3c1273e..0000000
Binary files a/static/favicon.ico and /dev/null differ
diff --git a/static/faviconfallback.png b/static/faviconfallback.png
deleted file mode 100644
index e4733b5..0000000
Binary files a/static/faviconfallback.png and /dev/null differ
diff --git a/static/js/init.js b/static/js/init.js
deleted file mode 100644
index 343f899..0000000
--- a/static/js/init.js
+++ /dev/null
@@ -1,11 +0,0 @@
-/* global M */
-
-var options = {};
-var elem = document.querySelector(".sidenav");
-var instance = M.Sidenav.init(elem, options);
-
-elem = document.querySelector(".collapsible");
-instance = M.Collapsible.init(elem, {
- // inDuration: 1000,
- // outDuration: 1000
-});
diff --git a/templates/404.html b/templates/404.html
deleted file mode 100644
index 8f21320..0000000
--- a/templates/404.html
+++ /dev/null
@@ -1,6 +0,0 @@
-{% extends "base.html" %}
-{% block title %}404: Page not found{% endblock %}
-{% block pageheader %}404: Page not found{% endblock %}
-{% block pagecontent %}
-The page you requested was not found.
-{% endblock %}
diff --git a/templates/base.html b/templates/base.html
deleted file mode 100644
index 0f63499..0000000
--- a/templates/base.html
+++ /dev/null
@@ -1,126 +0,0 @@
-
-
-
- {% block title %}{% endblock %} - digimarks
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-{% if not sortmethod %}
- {% set sortmethod = None %}
-{% endif %}
-{% if not show_as %}
- {% set show_as = None %}
-{% endif %}
-
-
-
-
-
-
-
-
- {% block pagecontent %}
- {% endblock %}
-
-
-
-
-
-
-
- {% block extrajs %}{% endblock %}
-
-
diff --git a/templates/bookmarks.html b/templates/bookmarks.html
deleted file mode 100644
index 3412819..0000000
--- a/templates/bookmarks.html
+++ /dev/null
@@ -1,113 +0,0 @@
-{% extends "base.html" %}
-{% if not action %}
-{% set action = 'Bookmarks' %}
-{% endif %}
-{% block title %}{{ action }}{% endblock %}
-{% block pageheader %}{{ action }}{% endblock %}
-{% block pagecontent %}
-
-{% if tag and not publictag %}
-
-{% endif %}
-
-{% if tag and publictag %}
-
-{% endif %}
-
-{% if message %}
-
-
-
-
- {{ message|safe }}
-
-
-
-
-{% endif %}
-
-
-
-{% if tags %}
-
-
-
-
-
-
-
-
-
- {% for tag in tags %}
-
- {% endfor %}
-
-
-
-
-{% endif %}
-
-{% if show_as and show_as == 'list' %}
- {% include 'list.html' %}
-{% else %}
- {% include 'cards.html' %}
-{% endif %}
-
-
-{% endblock %}
-{% block extrajs %}
-
-
-{% endblock %}
diff --git a/templates/bookmarks.js b/templates/bookmarks.js
deleted file mode 100644
index dd92d5e..0000000
--- a/templates/bookmarks.js
+++ /dev/null
@@ -1,11 +0,0 @@
-var elem = document.querySelector('.autocomplete');
-var instance = M.Autocomplete.getInstance(elem);
-instance.updateData({
- {% for bookmark in bookmarks %}
- {% if bookmark.favicon %}
- "{{ bookmark.title | replace('"', '\\"') | replace('\n', '') | replace('\r', '') }}": "{{ url_for('static', filename='favicons/' + bookmark.favicon) }}",
- {% else %}
- "{{ bookmark.title | replace('"', '\\"') | replace('\n', '') | replace('\r', '') }}": null,
- {% endif %}
- {% endfor %}
-});
diff --git a/templates/cards.html b/templates/cards.html
deleted file mode 100644
index 9fb774f..0000000
--- a/templates/cards.html
+++ /dev/null
@@ -1,65 +0,0 @@
-
- {% for bookmark in bookmarks %}
-
-
-
- {% if bookmark.favicon %}
-
- {% else %}
-
- {% endif %}
- {% if bookmark.http_status != 200 and bookmark.http_status != 304 %}
-
report_problem
- {% endif %}
- {% if bookmark.starred == True %}
-
star
- {% endif %}
- {% if bookmark.note %}
-
comment
- {% endif %}
-
-
-
-
Added @ {{ bookmark.created_date.strftime('%Y-%m-%d %H:%M') }}close
- {% if editable %}
-
- {% endif %}
- {% if showtags %}
-
- {% endif %}
-
-
-
- {% endfor %}
-
- {#
-
- #}
-
diff --git a/templates/edit.html b/templates/edit.html
deleted file mode 100644
index 999db6f..0000000
--- a/templates/edit.html
+++ /dev/null
@@ -1,175 +0,0 @@
-{% extends "base.html" %}
-{% block title %}{{ action }}{% endblock %}
-{% block pageheader %}{{ action }}{% endblock %}
-{% block pagecontent %}
-
-{% if bookmark.http_status != 200 and bookmark.http_status != 202 and bookmark.http_status != 304 %}
-
-
-
-
- {% if bookmark.http_status == 404 %}
- report_problem URL not found (404), broken/outdated link?
- {% elif bookmark.http_status == 301 %}
- report_problem HTTP status (301), moved permanently. Use button for new target
- {% elif bookmark.http_status == 302 %}
- report_problem HTTP status (302), moved temporarily. Use button for new target
- {% elif bookmark.http_status == bookmark.HTTP_CONNECTIONERROR %}
- report_problem Connection error, server might have been offline at the time of last edit
- {% else %}
- report_problem HTTP status {{ bookmark.http_status }}
- {% endif %}
-
-
-
-
-{% endif %}
-
-{% if message %}
-
-
-
-
- {{ message }}
-
-
-
-
-{% endif %}
-
-{% if formaction and formaction == 'edit' %}
-
-
- {% endif %}
-
-
-{% endblock %}
diff --git a/templates/index.html b/templates/index.html
deleted file mode 100644
index b9bd526..0000000
--- a/templates/index.html
+++ /dev/null
@@ -1,17 +0,0 @@
-{% extends "base.html" %}
-{% block title %}digimarks{% endblock %}
-{% block pageheader %}digimarks{% endblock %}
-{% block pagecontent %}
- Please visit your personal url, or see the digimarks project page .
-
-
-
-
-
- If you forgot/lost your personal url, contact your digimarks administrator. On startup, the personal codes are printed to the standard output (so should be findable in a log). Of course, bookmarks.db contains the user information too.
-
-
-
-
-
-{% endblock %}
diff --git a/templates/list.html b/templates/list.html
deleted file mode 100644
index 63671ec..0000000
--- a/templates/list.html
+++ /dev/null
@@ -1,62 +0,0 @@
-
-
-
-
-
- Bookmark
- Added
- {% if showtags %}
- Tags
- {% endif %}
-
-
-
-
- {% for bookmark in bookmarks %}
-
-
- {% if bookmark.favicon %}
-
- {% else %}
-
- {% endif %}
- {% if bookmark.http_status != 200 and bookmark.http_status != 304 %}
- report_problem
- {% endif %}
- {% if bookmark.starred == True %}
- star
- {% endif %}
- {% if bookmark.note %}
- comment
- {% endif %}
-
-
-
- {% if bookmark.title %}
- {{ bookmark.title }}
- {% else %}
- {{ bookmark.get_uri_domain() }} (no title)
- {% endif %}
-
-
- {{ bookmark.created_date.strftime('%Y-%m-%d %H:%M') }}
- {% if showtags %}
-
- {% for tag in bookmark.tags_list %}
-
- {% endfor %}
-
- {% endif %}
-
- {% if editable %}
- mode_edit
- delete
- {% endif %}
-
-
- {% endfor %}
-
-
-
diff --git a/templates/publicbookmarks.html b/templates/publicbookmarks.html
deleted file mode 100644
index 8bcb0e2..0000000
--- a/templates/publicbookmarks.html
+++ /dev/null
@@ -1,29 +0,0 @@
-{% extends "base.html" %}
-{% if not action %}
-{% set action = 'Bookmarks' %}
-{% endif %}
-{% block title %}{{ action }}{% endblock %}
-{% block pageheader %}{{ action }}{% endblock %}
-{% block pagecontent %}
-
-{% if message %}
-
-
-
-
- {{ message }}
-
-
-
-
-{% endif %}
-
-
-
-{% include 'cards.html' %}
-
-{% endblock %}
diff --git a/templates/redirect.html b/templates/redirect.html
deleted file mode 100644
index 400bc80..0000000
--- a/templates/redirect.html
+++ /dev/null
@@ -1,16 +0,0 @@
-
-
-
- Redirecting - digimarks
-
-
-
-
-
-
- You're being redirected. If nothing happens, click here instead .
-
-
diff --git a/templates/tags.html b/templates/tags.html
deleted file mode 100644
index 4342570..0000000
--- a/templates/tags.html
+++ /dev/null
@@ -1,65 +0,0 @@
-{% extends "base.html" %}
-{% block title %}Tags{% endblock %}
-{% block pageheader %}Tags{% endblock %}
-{% block pagecontent %}
-
-
-
-
-
-
- label
- present_to_all
- turned_in
- comment
- star
- warning
- delete
-
-
-
-
- {{ totaltags }}
- {{ totalpublic }}
- {{ totalbookmarks }}
- {{ totalnotes }}
- {{ totalstarred }}
- {{ totalhttperrorstatus }}
- {{ totaldeleted }}
-
-
-
-
-
-
-
-
-
- Tag
- Public link
- Number of bookmarks
-
-
-
- {% for tag in tags %}
-
-
- {{ tag['tag'] }}
-
-
- {% if tag['publictag'] %}
- Public link (Delete warning )
- {% else %}
- Create
- {% endif %}
-
-
- {{ tag['total'] }}
-
-
- {% endfor %}
-
-
-
-
-{% endblock %}