(broken) Start adding crypto support; rework parsing code a bit; add form submit handler