WIP: Issue #783: make theano importable under py3k

This PR incorporates #1224 (Issue #783: python3 compatible - remove relative imports) in one commit.  The other commit contains changes necessary to make "import theano" work under py3k.