adding support to load and save patterns
js done. adding django support now