Make init.sage work

Ideally, this would later be changed to use `attach` again.
Merge pull request #267 from kcrisman/initfix

Make init.sage work
startup code beautify
Exception check fix
Unused variable deleted
Simplify some path manipulation
import cleanup in startup code
Delete unused variable in notebook startup tests
Proper explicit definition of methods in startup code
Test function moved to misc.misc
test module function in misc.misc
test module used in startup code
test module used in notebook
sagenb.notebook.notebook imports cleanup and side effects on import sagenb.notebook.config removed
A method to start up notebook without generated code
pep8, bug fix, copyright note updated
Twisted server added
make uwsgi working with old startup code. New startup code refactor
import changes