Demo page changes

- move keycoder class to lib
- parse unencrypted keys
- return private key object and curve