Style fixes.

- Use h1 in homepage.html
- Ignore *.pyc files
- Use double quotes for docstrings.
- Remove trailing whitespaces from Readme & stronghold.py.
Flatten namespaces, enable matplotlib headless, use namedtuples.

- import math and matplotlib into current namespace.
- enable matplotlib headless mode.
- Create namedtuples for (x, z) and (x, z, f) pairs.

Use matplotlib in "headless-mode."

Remove unused import url_for.

Import math into local namespace. Make sue of namedtuples.
PEP8 style fixes (break up long lines).