some spaghetti, needs cleanup

Minor conceptual changes + some css (testing) + https only app from now
on.