working on modal rewrite
Modals are now generated by templates not javascript

Also moved modal, flex_memorize and expires helpers to plugins
document changes, bump version